let zookeeperConfig = {} ;

if( process.env.ZOOKEEPER_ADDR ){
    console.log('zookeeperConfig of env');
    zookeeperConfig = {
        zkAddress: process.env.ZOOKEEPER_ADDR,
        zkKongPath: "/infra/services/kong",
        zkAccessPointPath: "/infra/services/accesspoint"
    };
}else{
    console.log('zookeeper config file');
    zookeeperConfig = require ('./zookeeper.json');
}

module.exports = zookeeperConfig ;